const requelize = require("../dbConnect");
const { DataTypes } = require("sequelize");

const Admin = requelize.define(
  "admin",
  {
    name: {
      type: DataTypes.STRING,
      allowNull: false,
    },
    loginId: {
      type: DataTypes.STRING,
      allowNull: false,
    },
    loginPwd: {
      type: DataTypes.STRING,
      allowNull: false,
    },
  },
  {
    paranoid: true,
    freezeTableName: true,
    createdAt: false,
    updatedAt: false,
  }
);

module.exports = Admin;
